<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>DIDIFight</title>
	<#include "common/header.ftl"/>
    <script type="text/javascript" src="/js/plugins/jquery.form.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-validation/jquery.validate.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery.twbsPagination.min.js"></script>

    <script type="text/javascript">
        $(function () {
            $(function () {
                //点击保存按钮
                $("#saveBtn").click(function () {
                    $("#searchForm").ajaxSubmit({
                        datatype: "json",
                        success: function (data) {
                            if (data.success) {
                                window.location.reload();
                            } else {
                                $.messager.popup(data.msg);
                            }
                        }
                    })
                });
            });
        });
    </script>
</head>

<body>
<div class="container">
		<#include "common/top.ftl"/>
    <div class="row">
        <div class="col-sm-3">
        <#assign currentMenu = "welcomeMessage" />
        <#include "common/menu.ftl" />
        </div>
        <div class="col-sm-9">
            <div class="page-header">
                <center>
                    <h3>欢迎信息管理</h3>
                </center>
            </div>
            <div class="row">
                <!-- 提交分页的表单 -->
                <form id="searchForm" class="form-inline" method="post" action="/wechat/saveWelcomeMessage">
                    <input type="hidden" name="id" id="id" value="${welcomeMessage.id}"/>
                    <center>
                        <div class="form-group">
                            <textarea id="welcomeMessage" name="welcomeMessage"
                                      class="form-control" rows="3" style="margin-bottom: 20px;width: 800px">${welcomeMessage.welcomeMessage}</textarea>
                        </div>
                        <br>
                        <a href="javascript:void(-1);" class="btn btn-success" id="saveBtn">保存更新</a>
                    </center>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>